<template>
	<div id="app">
		<keep-alive>
			<router-view></router-view>
		</keep-alive>		
	</div>
</template>
<script type="text/javascript">	
	import axios from 'axios';
	
	//mock数据，非必要
    if(process.env.NODE_ENV=="development"){  
        require("@/mock/user.js")
		require("@/mock/home.js")
        require("@/mock/cities.js")
        require("@/mock/detail.js")
    }
	export default{
		name:"App",
		data(){
			return {
				msg:"app"
			};
		},
		mounted(){
			axios.get("/api/getUser").then((response)=>{
				//console.log(response);
			});
		}
	}
</script>
